package com.artPreter.pojo.dto;

import com.artPreter.pojo.Floor;
import com.artPreter.pojo.Position;
import com.artPreter.pojo.Room;
import lombok.Data;

@Data
public class BuildDTO {

    public String name;

    public String uuid;

    public Integer area;

    public BuildDTO(Position position) {
        this.area = position.getArea();
        this.name = position.getPosiName();
        this.uuid = position.getUuid();
    }

    public BuildDTO(Floor floor) {
        this.area = floor.getArea();
        this.name = floor.getFloorName();
        this.uuid = floor.getUuid();
    }

    public BuildDTO(Room room) {
        this.area = room.getArea();
        this.name = room.getRoomName();
        this.uuid = room.getUuid();
    }
}
